<script>
$(function(){
	
	// 删除
    $('img[del]').click(function (){
        var iid = $(this).attr('del');
        var nickname = $(this).attr('nickname');
        if(confirm('真的要删除'+nickname+'吗？')) {
            $.getJSON('?app=<?php echo APP; ?>&mod=delete',{iid:iid},function(data){
                if (data.state <= 0)
                {
                    alert(data.message);
                    return false;
                }
				alert(data.message);
				location.href = "?app=<?php echo APP; ?>&mod=category";
            });
        }
    });
	
});
</script>
<div class="line_1"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table1">
       <tr>
            <th class="th1">分类名称</th>
            <th class="th1">操作</th>
       </tr>
       <?php foreach((array)$this->lists as $list): ?> 
       <tr>
            <td style="float:left;padding-left:20px;width:97%;height:24px;"><?=$list['class_name']?></td>
            <td style="height:24px;"><?=opt('edit','?app='.APP.'&mod='.MOD.'&act=modi&class_id='.$list['class_id']);?>
            <?=opt('trash','javascript:;','del="'.$list['class_id'].'" nickname="'.$list['class_name'].'" title="删除" ');?>
            </td>
       </tr>
       <?php endforeach; ?>
</table>
<div class="page_num">
     <div class="fl">
        <span></span>
     </div>
     <div class="fr">
        <p class="cpager">
        </p>
     </div>
</div>